/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "生产批次主表",TableName = "pprecords_main",DBServer = "SmesDbContext")]
    public partial class pprecords_main:SmesEntity
    {
        /// <summary>
       ///批次唯一标识
       /// </summary>
       [Key]
       [Display(Name ="批次唯一标识")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string LotID { get; set; }

       /// <summary>
       ///批次编码（唯一）
       /// </summary>
       [Display(Name ="批次编码（唯一）")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string LotNo { get; set; }

       /// <summary>
       ///产品编码
       /// </summary>
       [Display(Name ="产品编码")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ProductCode { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///计划关联的作业批次号
       /// </summary>
       [Display(Name ="计划关联的作业批次号")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string PlanNo { get; set; }

       /// <summary>
       ///状态（0创建1开工）
       /// </summary>
       [Display(Name ="状态（0创建1开工）")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Status { get; set; }

       
    }
}